package com.pansoft.kline.model;

/**
 * 交易所价格 上方的数据
 *
 * @autor yqs
 * @date 2018/11/24 11:52
 **/
public class BoursePriceTopBean {
    /**
     * code : 0
     * data : {"id":"920","high":4525.8813,"low":4223.5073,"buy":4452.3096,"sell":4455.4677,"last":4455.4657,"vol":30739,"open":4408.9207,"time":1543031474713,"index_market_id":"7496","is_index":0,"show":{"cs":1,"dc":1,"fund":1,"statistics":0,"announce":0}}
     */

    private int code;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 920
         * high : 4525.8813
         * low : 4223.5073
         * buy : 4452.3096
         * sell : 4455.4677
         * last : 4455.4657
         * vol : 30739
         * open : 4408.9207
         * time : 1543031474713
         * index_market_id : 7496
         * is_index : 0
         * show : {"cs":1,"dc":1,"fund":1,"statistics":0,"announce":0}
         */

        private String id;
        private double high;
        private double low;
        private double buy;
        private double sell;
        private double last;
        private double vol;
        private double open;
        private long time;
        private String index_market_id;
        private int is_index;
        private ShowBean show;
        //1 涨 -1 跌 0 不变 默认
        private int lastTrendType;

        public int getLastTrendType() {
            return lastTrendType;
        }

        public void setLastTrendType(int lastTrendType) {
            this.lastTrendType = lastTrendType;
        }
        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public double getHigh() {
            return high;
        }

        public void setHigh(double high) {
            this.high = high;
        }

        public double getLow() {
            return low;
        }

        public void setLow(double low) {
            this.low = low;
        }

        public double getBuy() {
            return buy;
        }

        public void setBuy(double buy) {
            this.buy = buy;
        }

        public double getSell() {
            return sell;
        }

        public void setSell(double sell) {
            this.sell = sell;
        }

        public double getLast() {
            return last;
        }

        public void setLast(double last) {
            this.last = last;
        }

        public double getVol() {
            return vol;
        }

        public void setVol(double vol) {
            this.vol = vol;
        }

        public double getOpen() {
            return open;
        }

        public void setOpen(double open) {
            this.open = open;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public String getIndex_market_id() {
            return index_market_id;
        }

        public void setIndex_market_id(String index_market_id) {
            this.index_market_id = index_market_id;
        }

        public int getIs_index() {
            return is_index;
        }

        public void setIs_index(int is_index) {
            this.is_index = is_index;
        }

        public ShowBean getShow() {
            return show;
        }

        public void setShow(ShowBean show) {
            this.show = show;
        }

        public static class ShowBean {
            /**
             * cs : 1
             * dc : 1
             * fund : 1
             * statistics : 0
             * announce : 0
             */

            private int cs;
            private int dc;
            private int fund;
            private int statistics;
            private int announce;

            public int getCs() {
                return cs;
            }

            public void setCs(int cs) {
                this.cs = cs;
            }

            public int getDc() {
                return dc;
            }

            public void setDc(int dc) {
                this.dc = dc;
            }

            public int getFund() {
                return fund;
            }

            public void setFund(int fund) {
                this.fund = fund;
            }

            public int getStatistics() {
                return statistics;
            }

            public void setStatistics(int statistics) {
                this.statistics = statistics;
            }

            public int getAnnounce() {
                return announce;
            }

            public void setAnnounce(int announce) {
                this.announce = announce;
            }
        }
    }
}
